// 没有返回值 或者返回值是null
function sum(num1:number, num2:number) {
  console.log(num1+num2);
}

function sum1(num1:number, num2:number):void{
  console.log(num1+num2);
}